using System;
using System.Collections.Generic;
using System.Text;
using AF_ORM.CORE;
using System.Data;
using System.Configuration;
using QuanLyThietBi.Config;     
using QuanLyThietBi.Entity;
namespace QuanLyThietBi.ManagerBase
{
                

     public abstract class TBL_ChiTietHoSoBaoHanhSuaChuaManagerBase
    {
        public TBL_ChiTietHoSoBaoHanhSuaChuaManagerBase()
        {
            Adapter.ConnectionString =  ConnectionConfig.ConnectionString;            
        }
                    
 
        /// <summary>
        /// Them moi du lieu
        /// </summary>
        /// <returns>TBL_ChiTietHoSoBaoHanhSuaChuaEntity</returns>
        public TBL_ChiTietHoSoBaoHanhSuaChuaEntity Insert(TBL_ChiTietHoSoBaoHanhSuaChuaEntity obj)
        { 
            return (TBL_ChiTietHoSoBaoHanhSuaChuaEntity) Adapter.Insert(obj);             
        }
 
 
        /// <summary>
        /// Update du lieu theo khoa chinh cua object
        /// </summary>
        /// <returns>TBL_ChiTietHoSoBaoHanhSuaChuaEntity</returns>
        public TBL_ChiTietHoSoBaoHanhSuaChuaEntity Update(TBL_ChiTietHoSoBaoHanhSuaChuaEntity obj)
        { 
            return (TBL_ChiTietHoSoBaoHanhSuaChuaEntity)Adapter.Update(obj);             
        }
 
 
        /// <summary>
        /// Update du lieu theo dieu kien trong object
        /// </summary>
        /// <returns>TBL_ChiTietHoSoBaoHanhSuaChuaEntity</returns>
        public TBL_ChiTietHoSoBaoHanhSuaChuaEntity UpdateWithCondition(TBL_ChiTietHoSoBaoHanhSuaChuaEntity obj,TBL_ChiTietHoSoBaoHanhSuaChuaEntity objCond)
        { 
            return (TBL_ChiTietHoSoBaoHanhSuaChuaEntity)Adapter.UpdateWithCondition(obj,objCond);             
        }
 
 
        public TBL_ChiTietHoSoBaoHanhSuaChuaEntity Delete(TBL_ChiTietHoSoBaoHanhSuaChuaEntity obj)
        { 
            return (TBL_ChiTietHoSoBaoHanhSuaChuaEntity)Adapter.Delete(obj);             
        }
 
 
        public TBL_ChiTietHoSoBaoHanhSuaChuaEntity DeleteWithCondition(TBL_ChiTietHoSoBaoHanhSuaChuaEntity objCond)
        { 
            return (TBL_ChiTietHoSoBaoHanhSuaChuaEntity)Adapter.DeleteWithCondition(objCond);             
        }
 


        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MaCaBiet duoc set trong object
        /// </summary>
        /// <returns>TBL_ChiTietHoSoBaoHanhSuaChuaEntity</returns>
        public TBL_ChiTietHoSoBaoHanhSuaChuaEntity DeleteByMaCaBiet (TBL_ChiTietHoSoBaoHanhSuaChuaEntity obj)
        { 
            return (TBL_ChiTietHoSoBaoHanhSuaChuaEntity)Adapter.DeleteByField(obj,"MaCaBiet");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MaCaBiet 
        /// </summary>
        /// <returns>TBL_ChiTietHoSoBaoHanhSuaChuaEntity</returns>
        public TBL_ChiTietHoSoBaoHanhSuaChuaEntity DeleteByMaCaBiet (string MaCaBiet )
        { 
            TBL_ChiTietHoSoBaoHanhSuaChuaEntity obj = new TBL_ChiTietHoSoBaoHanhSuaChuaEntity();
            obj.MaCaBiet = MaCaBiet;  
            return (TBL_ChiTietHoSoBaoHanhSuaChuaEntity)Adapter.DeleteByField(obj,"MaCaBiet");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MaCTHoSoBaoHanh duoc set trong object
        /// </summary>
        /// <returns>TBL_ChiTietHoSoBaoHanhSuaChuaEntity</returns>
        public TBL_ChiTietHoSoBaoHanhSuaChuaEntity DeleteByMaCTHoSoBaoHanh (TBL_ChiTietHoSoBaoHanhSuaChuaEntity obj)
        { 
            return (TBL_ChiTietHoSoBaoHanhSuaChuaEntity)Adapter.DeleteByField(obj,"MaCTHoSoBaoHanh");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MaCTHoSoBaoHanh 
        /// </summary>
        /// <returns>TBL_ChiTietHoSoBaoHanhSuaChuaEntity</returns>
        public TBL_ChiTietHoSoBaoHanhSuaChuaEntity DeleteByMaCTHoSoBaoHanh (string MaCTHoSoBaoHanh )
        { 
            TBL_ChiTietHoSoBaoHanhSuaChuaEntity obj = new TBL_ChiTietHoSoBaoHanhSuaChuaEntity();
            obj.MaCTHoSoBaoHanh = MaCTHoSoBaoHanh;  
            return (TBL_ChiTietHoSoBaoHanhSuaChuaEntity)Adapter.DeleteByField(obj,"MaCTHoSoBaoHanh");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MaHSBaoHanh duoc set trong object
        /// </summary>
        /// <returns>TBL_ChiTietHoSoBaoHanhSuaChuaEntity</returns>
        public TBL_ChiTietHoSoBaoHanhSuaChuaEntity DeleteByMaHSBaoHanh (TBL_ChiTietHoSoBaoHanhSuaChuaEntity obj)
        { 
            return (TBL_ChiTietHoSoBaoHanhSuaChuaEntity)Adapter.DeleteByField(obj,"MaHSBaoHanh");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MaHSBaoHanh 
        /// </summary>
        /// <returns>TBL_ChiTietHoSoBaoHanhSuaChuaEntity</returns>
        public TBL_ChiTietHoSoBaoHanhSuaChuaEntity DeleteByMaHSBaoHanh (string MaHSBaoHanh )
        { 
            TBL_ChiTietHoSoBaoHanhSuaChuaEntity obj = new TBL_ChiTietHoSoBaoHanhSuaChuaEntity();
            obj.MaHSBaoHanh = MaHSBaoHanh;  
            return (TBL_ChiTietHoSoBaoHanhSuaChuaEntity)Adapter.DeleteByField(obj,"MaHSBaoHanh");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien NoiDungBaoHanh duoc set trong object
        /// </summary>
        /// <returns>TBL_ChiTietHoSoBaoHanhSuaChuaEntity</returns>
        public TBL_ChiTietHoSoBaoHanhSuaChuaEntity DeleteByNoiDungBaoHanh (TBL_ChiTietHoSoBaoHanhSuaChuaEntity obj)
        { 
            return (TBL_ChiTietHoSoBaoHanhSuaChuaEntity)Adapter.DeleteByField(obj,"NoiDungBaoHanh");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien NoiDungBaoHanh 
        /// </summary>
        /// <returns>TBL_ChiTietHoSoBaoHanhSuaChuaEntity</returns>
        public TBL_ChiTietHoSoBaoHanhSuaChuaEntity DeleteByNoiDungBaoHanh (string NoiDungBaoHanh )
        { 
            TBL_ChiTietHoSoBaoHanhSuaChuaEntity obj = new TBL_ChiTietHoSoBaoHanhSuaChuaEntity();
            obj.NoiDungBaoHanh = NoiDungBaoHanh;  
            return (TBL_ChiTietHoSoBaoHanhSuaChuaEntity)Adapter.DeleteByField(obj,"NoiDungBaoHanh");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien TinhTrang duoc set trong object
        /// </summary>
        /// <returns>TBL_ChiTietHoSoBaoHanhSuaChuaEntity</returns>
        public TBL_ChiTietHoSoBaoHanhSuaChuaEntity DeleteByTinhTrang (TBL_ChiTietHoSoBaoHanhSuaChuaEntity obj)
        { 
            return (TBL_ChiTietHoSoBaoHanhSuaChuaEntity)Adapter.DeleteByField(obj,"TinhTrang");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien TinhTrang 
        /// </summary>
        /// <returns>TBL_ChiTietHoSoBaoHanhSuaChuaEntity</returns>
        public TBL_ChiTietHoSoBaoHanhSuaChuaEntity DeleteByTinhTrang (string TinhTrang )
        { 
            TBL_ChiTietHoSoBaoHanhSuaChuaEntity obj = new TBL_ChiTietHoSoBaoHanhSuaChuaEntity();
            obj.TinhTrang = TinhTrang;  
            return (TBL_ChiTietHoSoBaoHanhSuaChuaEntity)Adapter.DeleteByField(obj,"TinhTrang");
        }

 
        /// <summary>
        /// Lay du lieu theo khoa chinh object
        /// </summary>
        /// <returns></returns>
        public TBL_ChiTietHoSoBaoHanhSuaChuaEntity Select(TBL_ChiTietHoSoBaoHanhSuaChuaEntity obj)
        { 
            return (TBL_ChiTietHoSoBaoHanhSuaChuaEntity) Adapter.Select(obj);             
        }
 
 
        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns></returns>
        public DataTable SelectWithCondition(TBL_ChiTietHoSoBaoHanhSuaChuaEntity obj)
        { 
            return  Adapter.SelectWithCondition(obj);             
        }
 
 
        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns></returns>
        public DataTable SelectWithCondition(TBL_ChiTietHoSoBaoHanhSuaChuaEntity obj,SelectOptions option)
        {             
            return  Adapter.SelectWithCondition(obj,option);             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public DataTable SelectAll()
        { 
            return Adapter.SelectAll(new TBL_ChiTietHoSoBaoHanhSuaChuaEntity());             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public DataTable SelectAll(SelectOptions option)
        { 
            return Adapter.SelectAll(new TBL_ChiTietHoSoBaoHanhSuaChuaEntity(),option);             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public List<TBL_ChiTietHoSoBaoHanhSuaChuaEntity> SelectAllLST()
        { 
            return  (List<TBL_ChiTietHoSoBaoHanhSuaChuaEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectAll(new TBL_ChiTietHoSoBaoHanhSuaChuaEntity()),new TBL_ChiTietHoSoBaoHanhSuaChuaEntity());           
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public List<TBL_ChiTietHoSoBaoHanhSuaChuaEntity> SelectAllLST(SelectOptions option)
        { 
            return (List<TBL_ChiTietHoSoBaoHanhSuaChuaEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectAll(new TBL_ChiTietHoSoBaoHanhSuaChuaEntity(),option),new TBL_ChiTietHoSoBaoHanhSuaChuaEntity());             
        }
 

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaCaBiet duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaCaBiet (TBL_ChiTietHoSoBaoHanhSuaChuaEntity obj)
        { 
            return Adapter.SelectByField(obj,"MaCaBiet");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaCaBiet duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaCaBiet (TBL_ChiTietHoSoBaoHanhSuaChuaEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"MaCaBiet",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaCaBiet duoc set trong object
        /// </summary>
        /// <returns>List<TBL_ChiTietHoSoBaoHanhSuaChuaEntity></returns>
        public List<TBL_ChiTietHoSoBaoHanhSuaChuaEntity> SelectByMaCaBietLST (TBL_ChiTietHoSoBaoHanhSuaChuaEntity obj)
        { 
            return  (List<TBL_ChiTietHoSoBaoHanhSuaChuaEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaCaBiet"),new TBL_ChiTietHoSoBaoHanhSuaChuaEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaCaBiet duoc set trong object
        /// </summary>
        /// <returns>List<TBL_ChiTietHoSoBaoHanhSuaChuaEntity></returns>
        public List<TBL_ChiTietHoSoBaoHanhSuaChuaEntity> SelectByMaCaBietLST (TBL_ChiTietHoSoBaoHanhSuaChuaEntity obj,SelectOptions option)
        { 
            return  (List<TBL_ChiTietHoSoBaoHanhSuaChuaEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"MaCaBiet",option),new TBL_ChiTietHoSoBaoHanhSuaChuaEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaCaBiet 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaCaBiet (string MaCaBiet )
        { 
            TBL_ChiTietHoSoBaoHanhSuaChuaEntity obj = new TBL_ChiTietHoSoBaoHanhSuaChuaEntity();
            obj.MaCaBiet = MaCaBiet;  
            return Adapter.SelectByField(obj,"MaCaBiet");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaCaBiet duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaCaBiet (string MaCaBiet, SelectOptions option)
        { 
            TBL_ChiTietHoSoBaoHanhSuaChuaEntity obj = new TBL_ChiTietHoSoBaoHanhSuaChuaEntity();
            obj.MaCaBiet = MaCaBiet;  
            return Adapter.SelectByField(obj,"MaCaBiet",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaCaBiet 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_ChiTietHoSoBaoHanhSuaChuaEntity> SelectByMaCaBietLST (string MaCaBiet )
        { 
            TBL_ChiTietHoSoBaoHanhSuaChuaEntity obj = new TBL_ChiTietHoSoBaoHanhSuaChuaEntity();
            obj.MaCaBiet = MaCaBiet;  
            return  (List<TBL_ChiTietHoSoBaoHanhSuaChuaEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaCaBiet"),new TBL_ChiTietHoSoBaoHanhSuaChuaEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaCaBiet duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_ChiTietHoSoBaoHanhSuaChuaEntity> SelectByMaCaBietLST (string MaCaBiet, SelectOptions option)
        { 
            TBL_ChiTietHoSoBaoHanhSuaChuaEntity obj = new TBL_ChiTietHoSoBaoHanhSuaChuaEntity();
            obj.MaCaBiet = MaCaBiet;  
            return  (List<TBL_ChiTietHoSoBaoHanhSuaChuaEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaCaBiet",option),new TBL_ChiTietHoSoBaoHanhSuaChuaEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaCTHoSoBaoHanh duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaCTHoSoBaoHanh (TBL_ChiTietHoSoBaoHanhSuaChuaEntity obj)
        { 
            return Adapter.SelectByField(obj,"MaCTHoSoBaoHanh");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaCTHoSoBaoHanh duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaCTHoSoBaoHanh (TBL_ChiTietHoSoBaoHanhSuaChuaEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"MaCTHoSoBaoHanh",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaCTHoSoBaoHanh duoc set trong object
        /// </summary>
        /// <returns>List<TBL_ChiTietHoSoBaoHanhSuaChuaEntity></returns>
        public List<TBL_ChiTietHoSoBaoHanhSuaChuaEntity> SelectByMaCTHoSoBaoHanhLST (TBL_ChiTietHoSoBaoHanhSuaChuaEntity obj)
        { 
            return  (List<TBL_ChiTietHoSoBaoHanhSuaChuaEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaCTHoSoBaoHanh"),new TBL_ChiTietHoSoBaoHanhSuaChuaEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaCTHoSoBaoHanh duoc set trong object
        /// </summary>
        /// <returns>List<TBL_ChiTietHoSoBaoHanhSuaChuaEntity></returns>
        public List<TBL_ChiTietHoSoBaoHanhSuaChuaEntity> SelectByMaCTHoSoBaoHanhLST (TBL_ChiTietHoSoBaoHanhSuaChuaEntity obj,SelectOptions option)
        { 
            return  (List<TBL_ChiTietHoSoBaoHanhSuaChuaEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"MaCTHoSoBaoHanh",option),new TBL_ChiTietHoSoBaoHanhSuaChuaEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaCTHoSoBaoHanh 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaCTHoSoBaoHanh (string MaCTHoSoBaoHanh )
        { 
            TBL_ChiTietHoSoBaoHanhSuaChuaEntity obj = new TBL_ChiTietHoSoBaoHanhSuaChuaEntity();
            obj.MaCTHoSoBaoHanh = MaCTHoSoBaoHanh;  
            return Adapter.SelectByField(obj,"MaCTHoSoBaoHanh");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaCTHoSoBaoHanh duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaCTHoSoBaoHanh (string MaCTHoSoBaoHanh, SelectOptions option)
        { 
            TBL_ChiTietHoSoBaoHanhSuaChuaEntity obj = new TBL_ChiTietHoSoBaoHanhSuaChuaEntity();
            obj.MaCTHoSoBaoHanh = MaCTHoSoBaoHanh;  
            return Adapter.SelectByField(obj,"MaCTHoSoBaoHanh",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaCTHoSoBaoHanh 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_ChiTietHoSoBaoHanhSuaChuaEntity> SelectByMaCTHoSoBaoHanhLST (string MaCTHoSoBaoHanh )
        { 
            TBL_ChiTietHoSoBaoHanhSuaChuaEntity obj = new TBL_ChiTietHoSoBaoHanhSuaChuaEntity();
            obj.MaCTHoSoBaoHanh = MaCTHoSoBaoHanh;  
            return  (List<TBL_ChiTietHoSoBaoHanhSuaChuaEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaCTHoSoBaoHanh"),new TBL_ChiTietHoSoBaoHanhSuaChuaEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaCTHoSoBaoHanh duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_ChiTietHoSoBaoHanhSuaChuaEntity> SelectByMaCTHoSoBaoHanhLST (string MaCTHoSoBaoHanh, SelectOptions option)
        { 
            TBL_ChiTietHoSoBaoHanhSuaChuaEntity obj = new TBL_ChiTietHoSoBaoHanhSuaChuaEntity();
            obj.MaCTHoSoBaoHanh = MaCTHoSoBaoHanh;  
            return  (List<TBL_ChiTietHoSoBaoHanhSuaChuaEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaCTHoSoBaoHanh",option),new TBL_ChiTietHoSoBaoHanhSuaChuaEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaHSBaoHanh duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaHSBaoHanh (TBL_ChiTietHoSoBaoHanhSuaChuaEntity obj)
        { 
            return Adapter.SelectByField(obj,"MaHSBaoHanh");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaHSBaoHanh duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaHSBaoHanh (TBL_ChiTietHoSoBaoHanhSuaChuaEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"MaHSBaoHanh",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaHSBaoHanh duoc set trong object
        /// </summary>
        /// <returns>List<TBL_ChiTietHoSoBaoHanhSuaChuaEntity></returns>
        public List<TBL_ChiTietHoSoBaoHanhSuaChuaEntity> SelectByMaHSBaoHanhLST (TBL_ChiTietHoSoBaoHanhSuaChuaEntity obj)
        { 
            return  (List<TBL_ChiTietHoSoBaoHanhSuaChuaEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaHSBaoHanh"),new TBL_ChiTietHoSoBaoHanhSuaChuaEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaHSBaoHanh duoc set trong object
        /// </summary>
        /// <returns>List<TBL_ChiTietHoSoBaoHanhSuaChuaEntity></returns>
        public List<TBL_ChiTietHoSoBaoHanhSuaChuaEntity> SelectByMaHSBaoHanhLST (TBL_ChiTietHoSoBaoHanhSuaChuaEntity obj,SelectOptions option)
        { 
            return  (List<TBL_ChiTietHoSoBaoHanhSuaChuaEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"MaHSBaoHanh",option),new TBL_ChiTietHoSoBaoHanhSuaChuaEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaHSBaoHanh 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaHSBaoHanh (string MaHSBaoHanh )
        { 
            TBL_ChiTietHoSoBaoHanhSuaChuaEntity obj = new TBL_ChiTietHoSoBaoHanhSuaChuaEntity();
            obj.MaHSBaoHanh = MaHSBaoHanh;  
            return Adapter.SelectByField(obj,"MaHSBaoHanh");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaHSBaoHanh duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaHSBaoHanh (string MaHSBaoHanh, SelectOptions option)
        { 
            TBL_ChiTietHoSoBaoHanhSuaChuaEntity obj = new TBL_ChiTietHoSoBaoHanhSuaChuaEntity();
            obj.MaHSBaoHanh = MaHSBaoHanh;  
            return Adapter.SelectByField(obj,"MaHSBaoHanh",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaHSBaoHanh 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_ChiTietHoSoBaoHanhSuaChuaEntity> SelectByMaHSBaoHanhLST (string MaHSBaoHanh )
        { 
            TBL_ChiTietHoSoBaoHanhSuaChuaEntity obj = new TBL_ChiTietHoSoBaoHanhSuaChuaEntity();
            obj.MaHSBaoHanh = MaHSBaoHanh;  
            return  (List<TBL_ChiTietHoSoBaoHanhSuaChuaEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaHSBaoHanh"),new TBL_ChiTietHoSoBaoHanhSuaChuaEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaHSBaoHanh duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_ChiTietHoSoBaoHanhSuaChuaEntity> SelectByMaHSBaoHanhLST (string MaHSBaoHanh, SelectOptions option)
        { 
            TBL_ChiTietHoSoBaoHanhSuaChuaEntity obj = new TBL_ChiTietHoSoBaoHanhSuaChuaEntity();
            obj.MaHSBaoHanh = MaHSBaoHanh;  
            return  (List<TBL_ChiTietHoSoBaoHanhSuaChuaEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaHSBaoHanh",option),new TBL_ChiTietHoSoBaoHanhSuaChuaEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NoiDungBaoHanh duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNoiDungBaoHanh (TBL_ChiTietHoSoBaoHanhSuaChuaEntity obj)
        { 
            return Adapter.SelectByField(obj,"NoiDungBaoHanh");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NoiDungBaoHanh duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNoiDungBaoHanh (TBL_ChiTietHoSoBaoHanhSuaChuaEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"NoiDungBaoHanh",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NoiDungBaoHanh duoc set trong object
        /// </summary>
        /// <returns>List<TBL_ChiTietHoSoBaoHanhSuaChuaEntity></returns>
        public List<TBL_ChiTietHoSoBaoHanhSuaChuaEntity> SelectByNoiDungBaoHanhLST (TBL_ChiTietHoSoBaoHanhSuaChuaEntity obj)
        { 
            return  (List<TBL_ChiTietHoSoBaoHanhSuaChuaEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NoiDungBaoHanh"),new TBL_ChiTietHoSoBaoHanhSuaChuaEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NoiDungBaoHanh duoc set trong object
        /// </summary>
        /// <returns>List<TBL_ChiTietHoSoBaoHanhSuaChuaEntity></returns>
        public List<TBL_ChiTietHoSoBaoHanhSuaChuaEntity> SelectByNoiDungBaoHanhLST (TBL_ChiTietHoSoBaoHanhSuaChuaEntity obj,SelectOptions option)
        { 
            return  (List<TBL_ChiTietHoSoBaoHanhSuaChuaEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"NoiDungBaoHanh",option),new TBL_ChiTietHoSoBaoHanhSuaChuaEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NoiDungBaoHanh 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNoiDungBaoHanh (string NoiDungBaoHanh )
        { 
            TBL_ChiTietHoSoBaoHanhSuaChuaEntity obj = new TBL_ChiTietHoSoBaoHanhSuaChuaEntity();
            obj.NoiDungBaoHanh = NoiDungBaoHanh;  
            return Adapter.SelectByField(obj,"NoiDungBaoHanh");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NoiDungBaoHanh duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNoiDungBaoHanh (string NoiDungBaoHanh, SelectOptions option)
        { 
            TBL_ChiTietHoSoBaoHanhSuaChuaEntity obj = new TBL_ChiTietHoSoBaoHanhSuaChuaEntity();
            obj.NoiDungBaoHanh = NoiDungBaoHanh;  
            return Adapter.SelectByField(obj,"NoiDungBaoHanh",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NoiDungBaoHanh 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_ChiTietHoSoBaoHanhSuaChuaEntity> SelectByNoiDungBaoHanhLST (string NoiDungBaoHanh )
        { 
            TBL_ChiTietHoSoBaoHanhSuaChuaEntity obj = new TBL_ChiTietHoSoBaoHanhSuaChuaEntity();
            obj.NoiDungBaoHanh = NoiDungBaoHanh;  
            return  (List<TBL_ChiTietHoSoBaoHanhSuaChuaEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NoiDungBaoHanh"),new TBL_ChiTietHoSoBaoHanhSuaChuaEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NoiDungBaoHanh duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_ChiTietHoSoBaoHanhSuaChuaEntity> SelectByNoiDungBaoHanhLST (string NoiDungBaoHanh, SelectOptions option)
        { 
            TBL_ChiTietHoSoBaoHanhSuaChuaEntity obj = new TBL_ChiTietHoSoBaoHanhSuaChuaEntity();
            obj.NoiDungBaoHanh = NoiDungBaoHanh;  
            return  (List<TBL_ChiTietHoSoBaoHanhSuaChuaEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NoiDungBaoHanh",option),new TBL_ChiTietHoSoBaoHanhSuaChuaEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TinhTrang duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByTinhTrang (TBL_ChiTietHoSoBaoHanhSuaChuaEntity obj)
        { 
            return Adapter.SelectByField(obj,"TinhTrang");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TinhTrang duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByTinhTrang (TBL_ChiTietHoSoBaoHanhSuaChuaEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"TinhTrang",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TinhTrang duoc set trong object
        /// </summary>
        /// <returns>List<TBL_ChiTietHoSoBaoHanhSuaChuaEntity></returns>
        public List<TBL_ChiTietHoSoBaoHanhSuaChuaEntity> SelectByTinhTrangLST (TBL_ChiTietHoSoBaoHanhSuaChuaEntity obj)
        { 
            return  (List<TBL_ChiTietHoSoBaoHanhSuaChuaEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"TinhTrang"),new TBL_ChiTietHoSoBaoHanhSuaChuaEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TinhTrang duoc set trong object
        /// </summary>
        /// <returns>List<TBL_ChiTietHoSoBaoHanhSuaChuaEntity></returns>
        public List<TBL_ChiTietHoSoBaoHanhSuaChuaEntity> SelectByTinhTrangLST (TBL_ChiTietHoSoBaoHanhSuaChuaEntity obj,SelectOptions option)
        { 
            return  (List<TBL_ChiTietHoSoBaoHanhSuaChuaEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"TinhTrang",option),new TBL_ChiTietHoSoBaoHanhSuaChuaEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TinhTrang 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByTinhTrang (string TinhTrang )
        { 
            TBL_ChiTietHoSoBaoHanhSuaChuaEntity obj = new TBL_ChiTietHoSoBaoHanhSuaChuaEntity();
            obj.TinhTrang = TinhTrang;  
            return Adapter.SelectByField(obj,"TinhTrang");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TinhTrang duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByTinhTrang (string TinhTrang, SelectOptions option)
        { 
            TBL_ChiTietHoSoBaoHanhSuaChuaEntity obj = new TBL_ChiTietHoSoBaoHanhSuaChuaEntity();
            obj.TinhTrang = TinhTrang;  
            return Adapter.SelectByField(obj,"TinhTrang",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TinhTrang 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_ChiTietHoSoBaoHanhSuaChuaEntity> SelectByTinhTrangLST (string TinhTrang )
        { 
            TBL_ChiTietHoSoBaoHanhSuaChuaEntity obj = new TBL_ChiTietHoSoBaoHanhSuaChuaEntity();
            obj.TinhTrang = TinhTrang;  
            return  (List<TBL_ChiTietHoSoBaoHanhSuaChuaEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"TinhTrang"),new TBL_ChiTietHoSoBaoHanhSuaChuaEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TinhTrang duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_ChiTietHoSoBaoHanhSuaChuaEntity> SelectByTinhTrangLST (string TinhTrang, SelectOptions option)
        { 
            TBL_ChiTietHoSoBaoHanhSuaChuaEntity obj = new TBL_ChiTietHoSoBaoHanhSuaChuaEntity();
            obj.TinhTrang = TinhTrang;  
            return  (List<TBL_ChiTietHoSoBaoHanhSuaChuaEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"TinhTrang",option),new TBL_ChiTietHoSoBaoHanhSuaChuaEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns>List<TBL_ChiTietHoSoBaoHanhSuaChuaEntity></returns>
        public List<TBL_ChiTietHoSoBaoHanhSuaChuaEntity> SelectWithConditionLST (TBL_ChiTietHoSoBaoHanhSuaChuaEntity obj)
        { 
            return  (List<TBL_ChiTietHoSoBaoHanhSuaChuaEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectWithCondition(obj),new TBL_ChiTietHoSoBaoHanhSuaChuaEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns>List<TBL_ChiTietHoSoBaoHanhSuaChuaEntity></returns>
        public List<TBL_ChiTietHoSoBaoHanhSuaChuaEntity> SelectWithConditionLST (TBL_ChiTietHoSoBaoHanhSuaChuaEntity obj,SelectOptions option)
        { 
            return  (List<TBL_ChiTietHoSoBaoHanhSuaChuaEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectWithCondition(obj,option),new TBL_ChiTietHoSoBaoHanhSuaChuaEntity());
        }

}
}
